package org.daidai.abstrusewriting.homepage.hot.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Administrator on 2016/11/1.
 */

public class Guess implements Parcelable {
    @SerializedName("title")
    private String title;
    @SerializedName("list")
    private List<GuessItem> guessItems;

    protected Guess(Parcel in) {
        title = in.readString();
    }

    public static final Creator<Guess> CREATOR = new Creator<Guess>() {
        @Override
        public Guess createFromParcel(Parcel in) {
            return new Guess(in);
        }

        @Override
        public Guess[] newArray(int size) {
            return new Guess[size];
        }
    };

    public List<GuessItem> getGuessItems() {
        return guessItems;
    }

    public String getTitle() {
        return title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
    }
}
